package fasilkom.antz.gui;

import com.golden.gamedev.gui.TFloatPanel;

import fasilkom.antz.WorldMap;


public class FloatPanel extends TFloatPanel {

	private WorldMap parent;
	
	public FloatPanel(WorldMap parent, String title, int x, int y, int w, int h) {
		super(title, true, false, x, y, w, h);
		this.parent = parent;
	}

	@Override
	public void setVisible(boolean b) {
		super.setVisible(b);
		
		// Paksain set active panel ke null 
		parent.setActivePanel(null);
	}
}
